﻿using System;
using System.Threading.Tasks;

namespace 观察者模式
{
    class Program
    {
        static void Main(string[] args)
        {
            var weatcher = new WeatcherData();
            IDisplayBoard displayBoard = new CurrentDisplay(weatcher);
            for (int i = 0; i < 10; i++)
            {
                weatcher.GetData();
                Task.Delay(1000 * 2).Wait();
            }
            

            Console.WriteLine("更新完成");
            Console.ReadKey();
        }
    }
}
